###################################################
# Party Fragmentation and Campaign Spending: A
# Subnational Analysis of the German Party System
#
# Marc S. Jacob & Jan Pollex
# Party Politics
# April 2021
###################################################

TABLE OF CONTENTS:

1. "main.R": the R code to replicate the results of the article
2. "supplementals.R": the R code to replicate all results of the supplemental material
3. "data_heatmap.csv": the inflation-adjusted data for the heatmaps (Figure 1)
4. "data_regression.csv": the inflation-adjusted data for all analysis other than the heatmap
5. "Germany_map.rds": the map data for the heatmaps (Figure 1)

Change the working directory "C:/Users/majacob/Dropbox/Jan_Marc_paper/Party Politics/Final/replication" specified in the code (e.g., setwd("C:/your path/"))

SESSION INFO:

R version 4.0.4 (2021-02-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] glmmTMB_1.0.2.1 gridExtra_2.3   sjPlot_2.8.7    ggpubr_0.4.0    reshape2_1.4.4  forcats_0.5.1  
 [7] stringr_1.4.0   dplyr_1.0.5     purrr_0.3.4     readr_1.4.0     tidyr_1.1.3     tibble_3.1.0   
[13] ggplot2_3.3.3   tidyverse_1.3.0

